package com.dukang.notes.service

import com.dukang.notes.dao.UserDao
import com.dukang.notes.model.UserBean
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import javax.annotation.Resource

@Service
class UserServiceImpl : IUserService {


    @Resource
    lateinit var userDao: UserDao

    /**
     * 获取用户列表
     */
    override fun getAll(): List<UserBean> {
        return userDao.getAll()
    }

    override fun getUserById(uId: String): UserBean {
        return userDao.getUserById(uId)
    }


}